﻿@{ Layout = null;}
<!DOCTYPE html>
<html lang="en">
<head>
    <title>登录</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="@Url.Content("~/Content/css/bootstrap.min.css")" type="text/css"/>
    <link rel="stylesheet" href="@Url.Content("~/Content/css/bootstrap-responsive.min.css")"type="text/css" />
    <link rel="stylesheet" href="@Url.Content("~/Content/css/matrix-login.css")" type="text/css"/>
    <link rel="stylesheet" href="@Url.Content("~/Content/font-awesome/css/font-awesome.css")"  type="text/css"/>
    
</head>
<body>
    <div id="loginbox">
        <form class="form-vertical" action="@Url.Action("Login", "Home")" method="post">
        <div class="control-group normal_text">
            <h3>
                <img src="@Url.Content("~/Content/img/logo.png")" alt="Logo" /></h3>
        </div>
        <div class="control-group">
            <div class="controls">
                <div class="main_input_box">
                    <span class="add-on bg_lg"><i class="icon-user"></i></span>
                    <input type="text" name="Name" placeholder="用户名" value="@Request.Form["Name"]" />
                </div>
            </div>
        </div>
        <div class="control-group">
            <div class="controls">
                <div class="main_input_box">
                    <span class="add-on bg_ly"><i class="icon-lock"></i></span>
                    <input type="password" name="Pwd" placeholder="密码" />
                </div>
            </div>
        </div>
        @if (ViewBag.result < 0)
        {        
            <div class="alert alert-error" style="text-align: center;">
                @switch ((int)ViewBag.result)
                {
                    case -1:
                    @Html.Raw(" 抱歉，您输入的用户不存在，请确认用户名或联系管理员！")
               break;
                    case -2:
                    @Html.Raw(" 抱歉，您输入的密码不正确，请重新输入！")
               break;
                    case -3:
                    @Html.Raw(" 抱歉，用户名不能为空，请重新输入！")
               break;
                }
            </div>
        }
        <div class="form-actions" style="text-align: center;">
            <span class="pull-right" style="float: none">
                <input type="submit" class="btn btn-success" value="登    录" style="width: 100px" /></span>
        </div>
        </form>
    </div>
</body>
</html>
